/***************************************************************************
 *   Copyleft 2006-2007 by												   *
 *	 Iwanicki Krzysztof													   *
 *   <gamma.mini.pw.edu.pl/~iwanickik>									   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 ***************************************************************************/
#ifndef __BSPLINECURVEMANAGER_H__
#define __BSPLINECURVEMANAGER_H__

#include "./Cursor3DManager.h"
#include "../Objects/Curves/BSplineCurve.h"

class BSplineCurveManager: public Cursor3DManager {
private:
	cInt mSelectedPoint;
	
	cVoid FindPoint(cBool bRemember);
	cVoid FindPoint();
	cVoid SelectPoint();
	cVoid DeselectPoint();
public:

    /**************************************************************
    * Constructors                                                *
    ***************************************************************/
    BSplineCurveManager(Cursor3D* cursor, BSplineCurve* bSplineCurve);
	virtual ~BSplineCurveManager() { }
        
    /**************************************************************
    * Operators                                                   *
    ***************************************************************/


    /**************************************************************
    * Other helpful functions                                     *
    ***************************************************************/
	virtual cVoid OnCommand(HWND hwnd, WPARAM wParam, LPARAM lParam, Engine3D* engine);
	virtual cVoid OnMouseMove(cPoint point, Engine3D* engine);
	virtual cVoid OnMouseWheel(cInt iDelta, Engine3D* engine);
	virtual cVoid OnLeftMouseDown(cPoint point, Engine3D* engine);
	virtual cVoid OnLeftMouseUp(cPoint point, Engine3D* engine);
	virtual cVoid OnRightMouseDown(cPoint point, Engine3D* engine);
};                                                                 

#endif // __BSPLINECURVEMANAGER_H__